package org.jeecg.modules.basic.storages.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.basic.goods.entity.LwgyMaterialGoods;
import org.jeecg.modules.basic.goods.mapper.LwgyMaterialGoodsMapper;
import org.jeecg.modules.basic.goods.service.ILwgyMaterialGoodsService;
import org.jeecg.modules.basic.storages.entity.LwgyStoragesNum;
import org.jeecg.modules.basic.storages.mapper.LwgyStoragesNumMapper;
import org.jeecg.modules.basic.storages.service.ILwgyStoragesNumService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 物料物品管理
 * @Author: jeecg-boot
 * @Date:   2021-04-01
 * @Version: V1.0
 */
@Service
public class LwgyStoragesNumServiceImpl extends ServiceImpl<LwgyStoragesNumMapper, LwgyStoragesNum> implements ILwgyStoragesNumService {

    @Resource
    private LwgyStoragesNumMapper lwgyStoragesNum;

    @Override
    public IPage<LwgyStoragesNum> queryPageCustomer(Page<LwgyStoragesNum> page, QueryWrapper<LwgyStoragesNum> queryWrapper) {
        return page.setRecords(lwgyStoragesNum.queryPageListCustom(page,queryWrapper));
    }

    @Override
    public List<LwgyStoragesNum> queryPageList(String id,String ckId) {
        return lwgyStoragesNum.queryList(id,ckId);
    }
}
